package com.gtxd.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gtxd.utils.CreateGUID;

/**
 * InnoDB free: 233472 kB
 * 
 * @author yangcheng
 * @email 717449318@qq.com
 * @date 2018-03-18 08:57:56
 */
@Entity
@Table(name = "patientinfo")
public class Patientinfo implements Serializable {
	private static final long serialVersionUID = 1L;

	// 病历编号
	private String pno;

	// 姓名
	private String pname;

	// 身份证号
	private String identity;

	// 性别
	private Integer psex;

	// 年龄
	private Integer age;

	// 医生编号
	private String dno;

	// 主治医生
	private String dname;

	// 就诊科室
	private String department;

	// 就诊时间
	@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
	private Date treatdate;

	// 入院时间
	@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
	private Date arrivedate;

	// 就诊费用
	private Double totalcost;

	// 备注
	private String notes;

	/**
	 * 无参构造
	 */
	public Patientinfo() {
		super();
		this.pno = CreateGUID.generateGUID();
	}

	/**
	 * 设置：病历编号
	 */
	public void setPno(String pno) {
		this.pno = pno;
	}

	/**
	 * 获取：病历编号
	 */
	@Id
	@Column(name = "pno")
	public String getPno() {
		return pno;
	}

	/**
	 * 设置：姓名
	 */
	public void setPname(String pname) {
		this.pname = pname;
	}

	/**
	 * 获取：姓名
	 */
	@Column(name = "pname")
	public String getPname() {
		return pname;
	}

	/**
	 * 设置：身份证号
	 */
	public void setIdentity(String identity) {
		this.identity = identity;
	}

	/**
	 * 获取：身份证号
	 */
	@Column(name = "identity")
	public String getIdentity() {
		return identity;
	}

	/**
	 * 设置：性别
	 */
	public void setPsex(Integer psex) {
		this.psex = psex;
	}

	/**
	 * 获取：性别
	 */
	@Column(name = "psex")
	public Integer getPsex() {
		return psex;
	}

	/**
	 * 设置：年龄
	 */
	public void setAge(Integer age) {
		this.age = age;
	}

	/**
	 * 获取：年龄
	 */
	@Column(name = "age")
	public Integer getAge() {
		return age;
	}

	/**
	 * 设置：主治医生
	 */
	public void setDname(String dname) {
		this.dname = dname;
	}

	/**
	 * 获取：主治医生
	 */
	@Column(name = "dname")
	public String getDname() {
		return dname;
	}

	/**
	 * 设置：就诊科室
	 */
	public void setDepartment(String department) {
		this.department = department;
	}

	/**
	 * 获取：就诊科室
	 */
	@Column(name = "department")
	public String getDepartment() {
		return department;
	}

	/**
	 * 设置：就诊时间
	 */
	public void setTreatdate(Date treatdate) {
		this.treatdate = treatdate;
	}

	/**
	 * 获取：就诊时间
	 */
	@Column(name = "treatdate")
	public Date getTreatdate() {
		return treatdate;
	}

	/**
	 * 设置：入院时间
	 */
	public void setArrivedate(Date arrivedate) {
		this.arrivedate = arrivedate;
	}

	/**
	 * 获取：入院时间
	 */
	@Column(name = "arrivedate")
	public Date getArrivedate() {
		return arrivedate;
	}

	/**
	 * 设置：就诊费用
	 */
	public void setTotalcost(Double totalcost) {
		this.totalcost = totalcost;
	}

	/**
	 * 获取：就诊费用
	 */
	@Column(name = "totalcost")
	public Double getTotalcost() {
		return totalcost;
	}

	/**
	 * 设置：备注
	 */
	public void setNotes(String notes) {
		this.notes = notes;
	}

	/**
	 * 获取：备注
	 */
	@Column(name = "notes")
	public String getNotes() {
		return notes;
	}

	/**
	 * @return the dno
	 */
	@Column(name = "dno")
	public String getDno() {
		return dno;
	}

	/**
	 * @param dno the dno to set
	 */
	public void setDno(String dno) {
		this.dno = dno;
	}

}
